import { http } from "@/utils/http";

/** 查询通知列表 */
export const getAdminNotificationsList = (params: {
  page: number;
  size: number;
  type?: string;
  userId?: string;
  level?: string;
  status?: string;
  startDate?: string;
  endDate?: string;
  keyword?: string;
  eventType?: string;
  businessId?: string;
}) => {
  return http.request<any>("get", "/api/admin/notifications", { params });
};
/** 发布站内通知 */

export const postAnnouncement = (params: {
  title: string;
  content: string;
}) => {
  return http.request<any>("post", "/api/admin/notifications/announcement", {
    params
  });
};
